#set($title = "智能会议预定系统-管理员-会议室-增加")
<h2>$title</h2>
<form action="/meetings/add" method="post">
    <table class="table">
        <thead>
            <tr>
                <td>
                    名称
                </td>
                <td>
                    值
                </td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    会议室名称
                </td>
                <td>
                    <input type="text" name="meetingName"/>
                </td>
            </tr>
            <tr>
                <td>
                    期数
                </td>
                <td>
                    <select name="building" class="selectpicker">
                        <option value="A">一期</option>
                        <option value="B">二期</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    楼层
                </td>
                <td>
                    <select name="floor" class="selectpicker">
                        <option value="1">一楼</option>
                        <option value="2">二楼</option>
						 <option value="3">三楼</option>
                        <option value="4">四楼</option>
						 <option value="5">五楼</option>
                        <option value="6">六楼</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    电视
                </td>
                <td>
                    #selectTag("hasTv",$options,$meeting.hasTv)
                </td>
            </tr>
            <tr>
                <td>
                    Lync
                </td>
                <td>
                    #selectTag("hasLync",$options,$meeting.hasLync)
                </td>
            </tr>
            <tr>
                <td>
                    IT设备
                </td>
                <td>
                    #selectTag("hasIt",$options,$meeting.hasIt)
                </td>
            </tr>
            <tr>
                <td>
                    vip
                </td>
                <td>
                    #selectTag("isVip",$options,$meeting.isVip)
                </td>
            </tr>
            <tr>
                <td>
                    启用
                </td>
                <td>
                    #selectTag("state",$options,$meeting.state)
                </td>
            </tr>
            <tr>
                <td>
                    电话
                </td>
                <td>
                    #selectTag("hasPhone",$options,$meeting.hasPhone)
                </td>
            </tr>
			 <tr>
                <td>
                    会议室权限
                </td>
                <td>
                     <div id="radioset">
                                <input type="radio" id="radio1" name="meetingRight" #if($!$meeting.meetingRight==1)checked="checked"#end
                                    value="1" /> <label for="radio1" title="普通权限">
                                   普通权限 </label> <input type="radio" id="radio2" name="meetingRight" #if($!$meeting.meetingRight==2)checked="checked"#end
                                    value="2" /> <label for="radio2" title="如1期4楼"> 特殊会议室
                                </label>
                                <input type="radio" id="radio3" name="meetingRight" #if($!$meeting.meetingRight==3)checked="checked"#end
                                    value="3" /> <label for="radio3" title="周期预约"> 周期预约
                                </label>
                                <input type="radio" id="radio4" name="meetingRight" #if($!$meeting.meetingRight==4)checked="checked"#end
                                    value="4" /> <label for="radio4" title="VIP"> VIP
                                </label>
                            </div>
                </td>
            </tr>
            <tr>
                <td>
                    最大容纳数
                </td>
                <td>
                    <input type="text" name="maxNums" value="$!meeting.maxNums"/>
                </td>
            </tr>
            <tr>
                <td>
                    会议室描述
                </td>
                <td>
                    <textarea name="remark" cols="3" rows="3"></textarea>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="span3 ">
        <button type="submit" class="ui-button-primary" value="增加"/>增加
        </button>
    </div>
	<div class="span3">
        <button type="button" href="/meetings/list" class="ui-button-success" value="返回"/>返回
    </div>
    </div>
</form>
<script type="text/javascript">
	$(function(){
		 $('#radioset').buttonset();
		 $('.selectpicker').selectpicker();
	});
</script>